package com.example.demo.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("t_user")
@NoArgsConstructor
@AllArgsConstructor
public class User {

    private String id;

    private String nickname;

    public
    String getId () {
        return id;
    }

    public
    void setId ( String id ) {
        this.id = id;
    }

    public
    String getNickname () {
        return nickname;
    }

    public
    void setNickname ( String nickname ) {
        this.nickname = nickname;
    }

    public
    String getPhone () {
        return phone;
    }

    public
    void setPhone ( String phone ) {
        this.phone = phone;
    }

    public
    String getPassword () {
        return password;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public
    void setPassword ( String password ) {
        this.password = password;
    }

    public
    String getAvatar () {
        return avatar;
    }

    public
    void setAvatar ( String avatar ) {
        this.avatar = avatar;
    }

    public
    String getCreateAt () {
        return createAt;
    }

    public
    void setCreateAt ( String createAt ) {
        this.createAt = createAt;
    }

    private String phone;

    private String password;

    //image id
    private String avatar;

    private String status;

    private String createAt;

    private String address;

    private String birth;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    private String sex;

    private String role;

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
